package com.itheima.day11.bytestream.test9;

import java.io.*;

public class Test {
    public static void main(String[] args) throws IOException {
        // 创建字节缓冲输入流
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("myCode\\src\\\\com\\itheima\\day11\\a.txt"));
        // 创建字节缓冲输出流
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("myCode\\src\\com\\itheima\\day11\\b.txt"));

        int read;
        while((read = bis.read()) != -1){
            bos.write(read);
        }

        bis.close();
        bos.close();

    }
}
